.node {
    cursor: pointer;
}

.node circle {
    fill: #fff;
    stroke: steelblue;
    stroke-width: 1.5px;
}

.node text {
    fill: white;
    font: 12px sans-serif;
}

.link {
    fill: none;
    stroke: #ccc;
    stroke-width: 1.5px;
}
body {
    background-image: url(../img/bg.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
}
.loading {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /*opacity:0.3;*/
    top: 0px;
    left: 0px;
    position: absolute;
    z-index: 1999;/*用来显示在最前面*/
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search {
    margin-left: 20px;
    margin-top: 20px;
    align-items: center;
    display: flex;
    flex-direction: row;
    height: 40px;
}
#search-input {
    width: 400px;
}

.search button {
    width: 100px;
    color: white;
    background-color: gray;
}
.result {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-grow: 1;
}
.similiar_title, .result_item_title {
    color: white;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.result_item_title .item_name {
    color: yellow;
    text-align: center;
}
.result_list {
    flex-grow: 2;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100px;
    display: flex;
}

.detail {
    flex-grow: 2;
    width: 100px;
    flex-direction: row;
    flex-wrap: nowrap;
    display: none;
}
.result_item {
    flex-grow: 1;
    width: 100px;
    border-style:solid;
    padding: 10px;
    margin-left: 20px;
    border-color: white;
    border-radius: 4px;
    border-width: 1px;
    background-color: #0f0f0f;
}
.divider {
    display: flex;
    align-self: stretch;
    margin-left: 40px;
    width: 1px;
    border-right:white 1px dashed
}
.result .tree {
    width: 500px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}
.questions {
    margin-top: 10px;
    max-height: 500px;
}
.similiars {
    margin-top: 10px;
}
.similiars .item {
    background-color: #313335;
    color: white;
    border: none;
    font-size: 10px;
}
.similiars .item .item_content {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 10px;
}
.questions .item {
    background-color: #313335;
    color: white;
    border: none;
    font-size: 30px;
}
.questions .item .item_content {
    font-size: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.detail .detail_list {
    min-height: 600px;
    width: 300px;
    border-style:solid;
    padding: 10px;
    margin-left: 20px;
    border-color: white;
    border-radius: 4px;
    border-width: 1px;
    background-color: #0f0f0f;
}
.detail .detail_content {
    flex-grow: 4;
    width: 100px;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
}
.detail_content .content {
    border-style:solid;
    padding: 10px;
    border-color: white;
    border-radius: 4px;
    border-width: 1px;
    background-color: #0f0f0f;
    height: 100px;
    flex-grow: 1;
}
.detail_content .similar {
    height: 100px;
    margin-top: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: row;
}
.similar .similar_item, .source_item, .video_item {
    width: 100px;
    margin-right: 20px;
    border-style:solid;
    padding: 10px;
    border-color: white;
    border-radius: 4px;
    border-width: 1px;
    background-color: #0f0f0f;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.content .title {
    color: yellow;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    margin-right: 20px;
    text-align: center;
}
.content .source {
    color: white;
    font-size: 15px;
}
.content .desc {
    color: white;
    font-size: 10px;
}
.similar_item .item_title {
    color: white;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.similar_item .item_content {
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*.mydecompose*/

.mydecompose {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /*opacity:0.3;*/
    top: 0px;
    left: 0px;
    position: absolute;
    z-index: 1998;/*用来显示在次层*/
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mydecompose .layout {
    background-color: #313335;
    height: 500px;
    width: 60vw;
    display: flex;
    flex-direction: column;
}
.mydecompose .decompose_title {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;justify-content: center;
}
.mydecompose .decompose_title span {
    font-size: 20px;
    color: white;
}
.mydecompose .layout .content {
    background-color: #595959;
}
.mydecompose .content .recommend {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 20px;
    color: white;
}
.mydecompose .layout_content {
    display: flex;
    flex-direction: row;
}
.mydecompose .layout_question {
    display: flex;
    flex-direction: column;
}
.mydecompose .layout_question .origin {
    color: white;
    font-size: 20px;
    margin-top: 20px;
    margin-left: 20px;
    margin-bottom: 20px;
}
.mydecompose .layout_question .origin span {
    color: yellow;
}
.mydecompose .layout_question .sub_question {
    margin-left: 40px;
    color: yellow;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.mydecompose .layout_question .sub_question .decompose_title {
    display: flex;
    flex-direction: row;
}
.mydecompose .layout_question .delete {
    margin-left: 10px;
    cursor: pointer;
}
.mydecompose .question_list {
    flex-grow: 1;
}
.mydecompose .add_question {
    margin-left: 40px;
    color: white;
    font-size: 20px;
    cursor: pointer;
}
.mydecompose .operation {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 20px;
}
.mydecompose .operation #decompose {
    margin-right: 20px;
}
.mydecompose .btn-bottom {
    border-radius: 5px;
    padding: 8px 16px;
    background-color: #0f0f0f;
    color: white;
    border: none;
}
.mydecompose .divider {
    display: flex;
    align-self: stretch;
    margin-left: 40px;
    width: 1px;
    border-right:white 1px dashed
}
.mydecompose .layout_list {
    margin-right: 20px;
    flex-grow: 1;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
}
.mydecompose .layout_list .list_title {
    color: white;
}
.mydecompose .layout_list .list-group {
    margin-top: 10px;
    background-color: #0f0f0f;
    display: flex;
    flex-direction: column;
}
.mydecompose .layout_list .list-group .item {
    background-color: #313335;
    color: white;
    border: none;
}

.mydecompose .sub_question input {
    outline-style: none ;
    border: 1px solid #ccc; 
    border-radius: 3px;
    padding: 4px 2px;
    font-size: 14px;
    font-weight: 700;
    font-family: "Microsoft soft";
    color: black;
}